<ul>
    <li class="username">
        <a href="{eyou:Diyurl link='user/Users/index' /}"> <img src="{$users.head_pic}">{$users.nickname}</a>
    </li>
    <li>
        <a href="{eyou:Diyurl link='user/Users/collection_index' /}">我的收藏</a>
    </li>
    <li class="cart">
        <a href="{eyou:Diyurl link='user/Shop/shop_cart_list' /}"><i class="ey-tb-cart"></i>购物车 (<em id="header_shop_cart">{$users.cart_num|default=0}</em>)</a>
    </li>
</ul>
<script>
    var header_shop_cart = document.getElementById('header_shop_cart').innerHTML;
    if (0 < header_shop_cart) {
	    document.getElementById('right_shop_cart').innerHTML = header_shop_cart;
	    document.getElementById('right_shop_cart').style.display = '';
    }
</script>
